﻿using S7.Net;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FactoryDeviceSystem.Models
{
    public class PLCInfo : BaseViewModel
    {
        private CpuType cpuType;

        public CpuType CPUType
        {
            get { return cpuType; }
            set 
            { 
                cpuType = value;
                OnPropertyChanged();
            }
        }

        private string ip;

        public string IP
        {
            get { return ip; }
            set 
            {
                ip = value;
                OnPropertyChanged();
            }
        }

        private int port;

        public int Port
        {
            get { return port; }
            set 
            {
                port = value;
                OnPropertyChanged();
            }
        }

        private short rack;

        public short Rack
        {
            get { return rack; }
            set 
            { 
                rack = value;
                OnPropertyChanged();
            }
        }

        private short slot;

        public short Slot
        {
            get { return slot; }
            set 
            {
                slot = value;
                OnPropertyChanged();
            }
        }

    }
}
